﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GtsServer.Model
{
    [Serializable]
    public partial class PrizeTaskReocrd
    {
        public PrizeTaskReocrd()
        { }
        #region Model
        private int _id;
        private int? _userid;
        private int? _prizeid;
        private DateTime? _createtime;
        private DateTime? _edittime;
        private int? _stuas;
        private int? _taskid;
        private string _remark;
        private int? _prizecount;
        private bool _ismanuallyadd = false;
        /// <summary>
        /// 物品记录id  虚拟物品  在游戏中可使用
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Userid
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Prizeid
        {
            set { _prizeid = value; }
            get { return _prizeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Createtime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? EditTime
        {
            set { _edittime = value; }
            get { return _edittime; }
        }
        /// <summary>
        /// 兑换状态 0：已领取 1：未领取 2:丢弃
        /// </summary>
        public int? Stuas
        {
            set { _stuas = value; }
            get { return _stuas; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? TaskID
        {
            set { _taskid = value; }
            get { return _taskid; }
        }
        /// <summary>
        /// 记录说明（如果是比赛的奖品，比赛结束时自动分发奖品）
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PrizeCount
        {
            set { _prizecount = value; }
            get { return _prizecount; }
        }
        /// <summary>
        /// 是否是后台手动添加
        /// </summary>
        public bool IsManuallyAdd
        {
            set { _ismanuallyadd = value; }
            get { return _ismanuallyadd; }
        }
        #endregion Model
    }

    public class PrizeTaskReocrdShow : PrizeTaskReocrd
    {
        public PrizeTaskReocrdShow() { }
        public PrizeTaskReocrdShow(PrizeTaskReocrd model)
        {
            this.Id = model.Id;
            this.Userid = model.Userid;
            this.Prizeid = model.Prizeid;
            this.Createtime = model.Createtime;
            this.EditTime = model.EditTime;
            this.Remark = model.Remark;
            this.PrizeCount = model.PrizeCount;
            this.IsManuallyAdd = model.IsManuallyAdd;
            this.Stuas = model.Stuas;
            this.TaskID = model.TaskID;
        }

        private string _userAccount;

        public string UserAccount
        {
            get { return _userAccount; }
            set { _userAccount = value; }
        }

        private string _userMac;

        public string UserMac
        {
            get { return _userMac; }
            set { _userMac = value; }
        }

        private string _userImei;

        public string UserImei
        {
            get { return _userImei; }
            set { _userImei = value; }
        }

        private string _userIMSI;

        public string UserIMSI
        {
            get { return _userIMSI; }
            set { _userIMSI = value; }
        }
        private string _prizeName;

        public string PrizeName
        {
            get { return _prizeName; }
            set { _prizeName = value; }
        }
        private string _prizeTaskReocrdState;

        public string PrizeTaskReocrdState
        {
            get { return _prizeTaskReocrdState; }
            set { _prizeTaskReocrdState = value; }
        }
        private string _taskName;

        public string TaskName
        {
            get { return _taskName; }
            set { _taskName = value; }
        }
    }
}
